import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.Test;

/**
 * @program: junit5_learning
 * @description: 假设
 * @author: CaoYong
 * @create: 2021-03-11 19:05
 **/
public class Assumption {

    @Test
    void assumeTrueTest() {
        Assumptions.assumeTrue(true);
        System.out.println("This will not be implemented");
    }

    @Test
    void assumeFalseTest() {
        Assumptions.assumeFalse(true);
        System.out.println("This will not be implemented");
    }

    @Test
    void assumingThatTest() {
        Assumptions.assumingThat( false,
                () -> {
                    System.out.println("This will not be implemented");
                });

        System.out.println("this will be implemented");
    }
}
